import Cookies from 'js-cookie'
import { ACCESS_TOKEN, UPMADE_TOKEN} from '@/store/mutation-types'
export function getToken() {
  	// return Cookies.get(ACCESS_TOKEN)
 	return sessionStorage.getItem(ACCESS_TOKEN) 
}
export function setToken(token) {
  	// return Cookies.set(ACCESS_TOKEN, token)
  	return sessionStorage.setItem(ACCESS_TOKEN,token)
}
export function removeToken() {
  	// return Cookies.remove(ACCESS_TOKEN)
  	return sessionStorage.removeItem(ACCESS_TOKEN)
}

export function getUpmadeToken() {
   return sessionStorage.getItem(UPMADE_TOKEN) 
}
export function setUpmadeToken(token) {
	return sessionStorage.setItem(UPMADE_TOKEN, token)
}
export function removeUpmadeToken() {
	return sessionStorage.removeItem(UPMADE_TOKEN)
}



